package com.groupbuying.settleconsumer.connector;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author WYN
 * @date 2019/5/9
 * @email wyn20140226@aliyun.com
 * @des 服务商中心接口连接器
 */
@Service
@FeignClient(name = "service-ys")
public interface YSFeign {

    /**
     *银盛分账回执接口
     */
    @PostMapping("/ysSplit/split")
    String ysSplitReceipt(@RequestParam Map<String, Object> mapParams);
    /**
     *银盛分账查询接口
     */
    @RequestMapping(value = "/ysSplitRequest/splitRequest")
    String splitRequestReceipt (@RequestParam Map<String, Object> mapParams);
}
